package com.java.main.jvm;

import javax.xml.crypto.Data;
import java.util.*;
import java.util.stream.Collectors;

/**
 * @Description
 * @Author 顾志杰
 * @Date 2021/10/9 10:10
 */
public class Java {
    public static void main(String[] args) {
//        System.out.println(~12223);


//        for (int i = 1; i <= 9; i++) {
//            for (int j = 1; j <= i; j++) {
//                System.out.print(j + "*" + i + "=" + i * j + "\t");
//            }
//            System.out.println(" ");
//        }

//        String[] eat = new String[]{"板面","鸡西刀削面","麻辣烫","烧饼","包子","黄焖鸡","烤肉拌饭","盒饭","脆皮烤鸭"};
//        Random random = new Random();
//        System.out.println(eat[random.nextInt(eat.length)]);

        System.out.println(3 << 4);
        System.out.println(3 * 16);
        List<String> list = new ArrayList<>(Arrays.asList("1", "2", "3", "4", "5"));
        String result2 = list.stream().collect(Collectors.joining(","));
        String result = String.join(",",list);
        System.out.println(result);
        System.out.println(result2);
        String[] split = result2.split(",");
    }
}
